To make hay during favourable (dry) weather.
To act while an opportunity exists; to take action while a situation is favorable.